<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta name="renderer" content="webkit" />
@section('title')
<title>登录 - WeCenter</title>
@show
<meta name="keywords" content="WeCenter,知识社区,社交社区,问答社区" />
<meta name="description" content="WeCenter社交化知识社区"  />
<meta property="qc:admins" content="1543437157611256216375" />
<meta property="wb:webmaster" content="d550602d19a4cb44" />
<base href="/" /><!--[if IE]></base><![endif]-->
<link href="/homes/css/default/img/favicon.ico?v=20150409" rel="shortcut icon" type="image/x-icon" />

<link rel="stylesheet" type="text/css" href="/homes/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/homes/css/icon.css" />

<link href="/homes/css/default/common.css?v=20150409" rel="stylesheet" type="text/css" />
<link href="/homes/css/default/link.css?v=20150409" rel="stylesheet" type="text/css" />
<link href="/homes/js/plug_module/style.css?v=20150409" rel="stylesheet" type="text/css" />
<link href="/homes/css/default/login.css?v=20150409" rel="stylesheet" type="text/css" />

<link rel="stylesheet" type="text/css" href="/homes/css/fox/fox.css" />

<script type="text/javascript">
    var _E55D449A438044B9192ACFD180E1121E="";
    var G_POST_HASH=_E55D449A438044B9192ACFD180E1121E;
    var G_INDEX_SCRIPT = "/";
    var G_SITE_NAME = "WeCenter";
    var G_BASE_URL = "/";
    var G_STATIC_URL = "/homes";
    var G_UPLOAD_URL = "/uploads";
    var G_USER_ID = "";
    var G_USER_NAME = "";
    var G_UPLOAD_ENABLE = "N";
    var G_UNREAD_NOTIFICATION = 0;
    var G_NOTIFICATION_INTERVAL = 100000;
    var G_CAN_CREATE_TOPIC = "";
    var G_ADVANCED_EDITOR_ENABLE = "Y";

    </script>
<script src="/homes/js/jquery.2.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/jquery.form.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/plug_module/plug-in_module.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/jquery.easing.min.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/aws.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/aw_template.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/app.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/jquery.lazyload.js?v=20150409" type="text/javascript"></script>
<script src="/homes/js/md5.js?v=20150409" type="text/javascript"></script>

<script type="text/javascript" src="/homes/js/compatibility.js"></script>
<!--[if lte IE 8]>
    <script type="text/javascript" src="/homes/js/respond.js"></script>
<![endif]-->
<script>
$(function() {
    //图片延时加载
    $(".shibox img").lazyload({
    placeholder : G_STATIC_URL+"/common/grey.gif",
    effect : "fadeIn"
    });
    $(".aw-article-list img").lazyload({
    placeholder : G_STATIC_URL+"/common/grey.gif",
    effect : "fadeIn"
    });
    $(".markitup-box img").lazyload({
    placeholder : G_STATIC_URL+"/common/grey.gif",
    effect : "fadeIn"
    });
});
</script>
</head>
<noscript unselectable="on" id="noscript">
    <div class="aw-404 aw-404-wrap container">
        <img src="/homes/common/no-js.jpg">
        <p>你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!</p>
    </div>
</noscript>
<div id="body-wrapper">
@section('content')
    <div class="aw-login-box foxbox">
        <div class="mod-footer">
            <span style="font-size:20px;color:#fff;"><i class="icon icon-user"></i> 会员登录</span>         
        </div>

        <div class="mod-body clearfix">
            <div class="content">
                <h1 class="logo"><a href=""></a></h1>
                <h2>WeCenter</h2>
                <div class="side-bar">
                    @if (count($errors) > 0)
                        <div class="mws-form-message warning" style="color:red;font-size:18px">
                            @foreach ($errors->all() as $error)
                                {{ $error }} <br>
                            @endforeach
                        </div>
                        <script>setTimeout("location.href='/login'",2000)</script>
                    @endif
                </div>
                
                <form method="post" action="/dologin">
                    <ul>
                        <li>
                            <input type="text" id="aw-login-user-name" class="form-control" placeholder="用户名" name="username" />
                        </li>
                        <li>
                            <input type="password" id="aw-login-user-password" class="form-control" placeholder="密码" name="password" />
                        </li>
                        <li class="alert alert-danger hide error_message">
                            <i class="icon icon-delete"></i> <em></em>
                        </li>
                        <li class="last">
                            <!-- <input type="submit" value="123"> -->
                            <button id="login_submit" class="pull-right btn btn-large btn-orange">登录</button>
                                <input type="checkbox" value="1" name="net_auto_login" />
                                记住我                         </label>
                            <a href="/forget">&nbsp;&nbsp;忘记密码</a>
                        </li> 
                    </ul>
                   {{csrf_field()}}
                </form>
            </div>
        </div>

        <div class="side-bar">
        </div>
        <div class="mod-footer">
            <span>还没有账号?</span>&nbsp;&nbsp;
            <a href="/register">立即注册</a>&nbsp;&nbsp;•&nbsp;&nbsp;
            <!--•&nbsp;&nbsp;
            <a href="http://localhost/dkflasdflsdfklsdfsdkflsdflksfdlsflksdkf/?/reader/">问答阅读</a>-->
        </div>
    </div>
    <div id="bgPattern"></div>
@show
</div>
<script type="text/javascript" src="/homes/js/jquery.backstretch.js"></script>
<script type="text/javascript" src="/homes/js/app/fox.js"></script>
<script type="text/javascript" src="/homes/js/app/login.js"></script>
